path_get_closed

Returns the closed status of a given path.

语法:

path_get_closed(index);


参数 描述
index The index of the path to check.


返回: Boolean(布尔值)


描述

This function can be used to return whether the path is flagged as closed (true) or open (false), ie whether the path loops or if it has a definitive beginning and end.


例如:

state = path_get_closed(c_path)

This will set "state" to either true or false depending on the closed state of the path indexed in "c_path".


上一页: Path Information
下一页: path_get_kind
© Copyright YoYo Games Ltd. 2018 All Rights Reserved